package org.example;

import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) throws InterruptedException, IOException {
        byte[] bytes = new byte[1000];
        InputStream stream = new FileInputStream("E:\\qq图片.jpg");
        int read = stream.read(bytes);

    }


}

class Employee implements Runnable {
    private String name;
    private String sal;
    private MyDate birthday;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSal() {
        return sal;
    }

    public void setSal(String sal) {
        this.sal = sal;
    }

    public MyDate getBirthday() {
        return birthday;
    }

    public void setBirthday(MyDate birthday) {
        this.birthday = birthday;
    }


    public Employee(String name, String sal, MyDate birthday) {
        this.name = name;
        this.sal = sal;
        this.birthday = birthday;
    }

    public Employee() {

    }

    @Override
    public String toString() {
        return "Employee{" +
                "name='" + name + '\'' +
                ", sal='" + sal + '\'' +
                ", birthday=" + birthday +
                '}';
    }

    @Override
    public void run() {
        int x = 0;
        while (true) {
            System.out.println("runnable++1132135 " + x);
            x++;
            if(x >= 10){
                break;
            }
        }
    }

    static class MyDate {
        private Integer year;
        private Integer month;
        private Integer day;

        public MyDate(Integer year, Integer month, Integer day) {
            this.year = year;
            this.month = month;
            this.day = day;
        }

        public Integer getYear() {
            return year;
        }

        public void setYear(Integer year) {
            this.year = year;
        }

        public Integer getMonth() {
            return month;
        }

        public void setMonth(Integer month) {
            this.month = month;
        }

        public Integer getDay() {
            return day;
        }

        public void setDay(Integer day) {
            this.day = day;
        }

        @Override
        public String toString() {
            return "MyDate{" +
                    "year=" + year +
                    ", month=" + month +
                    ", day=" + day +
                    '}';
        }
    }
}
